const baseUrl = import.meta.env.VITE_FLOWABLE_URL

const StencilIcon = ({
  stencil
}) => {
  return <div
    style={{ display: 'inline-block' }}
  >
    <div
      style={{
        display: 'flex',
        width: 22,
        height: 22,
        alignItems: 'center',
        justifyContent: 'center'
      }}
    >
      <img src={`${baseUrl}modeler/editor-app/stencilsets/bpmn2.0/icons/${stencil.icon}`} alt="" />
    </div>
  </div>
}

export default StencilIcon